package cn.com.jonpad.cloud.provider.serivce;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class TicketSerivce {
	@Autowired
	ServerProperties serverProperties;
	public String getTicket(String name){
		return "ticket name :《"+name+"》";
	}
	public String getTicket(){
		log.info("Server port :{} ",serverProperties.getPort());
		return "get ticket ";
	}
}
